package com.src.myapplication.ui.view;

import android.view.View;
import android.widget.Button;

import com.src.myapplication.Main2Activity;
import com.src.myapplication.R;
import com.src.myapplication.base.BaseFragment;
import com.src.myapplication.utils.UIManager;

/**
 * Created by Administrator on 2016/10/17.
 */
public class FragmentZhongXin extends BaseFragment {

//
//    @BindView(R.id.letvtitle)
//    TextView letvtitle;
//    @BindView(R.id.open)
//    ImageButton open;
//    @BindView(R.id.change_flash)
//    ImageButton changeFlash;
//    @BindView(R.id.switch_camera)
//    ImageButton switchCamera;
//    @BindView(R.id.switch_filter)
//    ImageButton switchFilter;
//    @BindView(R.id.set_volume)
//    ImageButton setVolume;
//    @BindView(R.id.letv_tools)
//    RelativeLayout letvTools;
//    @BindView(R.id.camera_view)
//    CameraView cameraView;
    //设置推流地址
//    private String path = "rtmp://13704.mpush.live.lecloud.com/live/2222";
//    //拉流地址rtmp://13299.mpull.live.lecloud.com/live/2222
//

    @Override
    public void initView(View view) {
        Button bt = (Button) view.findViewById(R.id.bt);
        bt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                UIManager.startActivity(getContext(), Main2Activity.class);
            }
        });
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_zhongxin;
    }

}

